package com.stone.stone_mall.nosql.elasticsearch.repository;

import com.stone.stone_mall.nosql.elasticsearch.docment.EsProduct;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

/**
 * 商品ES操作类
 * Created by macro on 2018/6/19.
 */
public interface EsproductRepository extends ElasticsearchRepository<EsProduct,Long> {
   Page<EsProduct> findByNameOrSubTitleOrKeywords(String name, String subTitle, String keywords, PageRequest page);
}
